Class symantec.itools.awt.multiList.TextAndImageCell
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.multiList.TextAndImageCell

Object
   |
   +----Cell
           |
           +----symantec.itools.awt.multiList.TextAndImageCell

public class TextAndImageCell
extends Cell
implements ImageObserver, Serializable
This is a helper class to the MultiList class. It contains and draws the image and text of a cell.

Version:
1.1, July 14, 1997
Author:
Symantec

Variable Index

 o im
This cell's image value.
 o list
The MultiList this cell belongs to.
 o text
This cell's text value.

Constructor Index

 o symantec.itools.awt.multiList.TextAndImageCell(MultiList)
Constructs a default TextAndImageCell.
 o symantec.itools.awt.multiList.TextAndImageCell(MultiList, String)
Constructs a TextAndImageCell with the given text value.
 o symantec.itools.awt.multiList.TextAndImageCell(MultiList, Image)
Constructs a TextAndImageCell with the given image value.
 o symantec.itools.awt.multiList.TextAndImageCell(MultiList, String, Image)
Constructs a TextAndImageCell with the given text and image values.

Method Index

 o drawCell(Graphics, int, int, int, int, int, int)
Draws the cell using the given graphics context.
 o getImage()
Returns this cell's image.
 o getText()
Returns this cell's text.
 o imageUpdate(Image, int, int, int, int, int)
Incrementally updates an image as image data becomes available.
 o toString()
Returns a string representation of this component.

Variables

 o im
protected transient java.awt.Image im
This cell's image value.

 o list
protected symantec.itools.awt.MultiList list
The MultiList this cell belongs to.

 o text
protected java.lang.String text
This cell's text value.

Constructors

 o TextAndImageCell
public TextAndImageCell(MultiList l)
Constructs a default TextAndImageCell.

Parameters:
l - the MultiList this cell is in
 o TextAndImageCell
public TextAndImageCell(MultiList l,
                        String s)
Constructs a TextAndImageCell with the given text value.

Parameters:
l - the MultiList this cell is in
s - the cell's text value
 o TextAndImageCell
public TextAndImageCell(MultiList l,
                        Image i)
Constructs a TextAndImageCell with the given image value.

Parameters:
l - the MultiList this cell is in
i - the cell's image value
 o TextAndImageCell
public TextAndImageCell(MultiList l,
                        String s,
                        Image i)
Constructs a TextAndImageCell with the given text and image values.

Parameters:
l - the MultiList this cell is in
s - the cell's text value
i - the cell's image value

Methods

 o drawCell
public void drawCell(Graphics g,
                     int align,
                     int x,
                     int y,
                     int w,
                     int h,
                     int asc)
Draws the cell using the given graphics context.

Parameters:
g - the graphics context used for drawing
align - the column alignment, one of LEFT, CENTER, or RIGHT
x - the horizontal cell position, in pixels
y - the vertical cell position, in pixels
w - the width of the cell, in pixels
h - the height of the cell, in pixels
asc - the ascent metric of the cell's font
Overrides:
drawCell in class Cell
See Also:
LEFT, CENTER, RIGHT
 o getImage
public java.awt.Image getImage()
Returns this cell's image.

 o getText
public java.lang.String getText()
Returns this cell's text.

 o imageUpdate
public boolean imageUpdate(Image img,
                           int flags,
                           int x,
                           int y,
                           int w,
                           int h)
Incrementally updates an image as image data becomes available. This is a standard Java AWT method which gets called by the AWT to incrementally draw an image as more image data becomes available.

Parameters:
img - the image being drawn
flags - image update flags (see class ImageObserver)
x - horizontal position, in pixels
y - vertical position, in pixels
w - width, in pixels
h - height, in pixels
Returns:
true if image has been completely loaded
See Also:
ImageObserver, imageUpdate
 o toString
public java.lang.String toString()
Returns a string representation of this component. This is a standard Java AWT method which gets called to generate a string that represents this component.

Returns:
a meaningful string about this object
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index